package cn.jiahua.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/bill")
public class BillControllerChange {


     @RequestMapping("/hello")
    public ModelAndView hello(){

        System.out.println("hello springmvc");

        ModelAndView modelAndView = new ModelAndView("index");
        modelAndView.addObject("msg","hello springmvc");

        return modelAndView;
    }



    @RequestMapping("/test")
    public Map test(){

        Map map= new HashMap();

        System.out.println("hello springmvc");

        ModelAndView modelAndView = new ModelAndView("index");
        modelAndView.addObject("msg","hello springmvc");

        return map;
    }


}
